package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Foodadditive;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface FoodadditiveService {

	public Foodadditive saveFoodadditive(Foodadditive foodadditive);

	public Set<Foodadditive> loadFoodadditives();

	public Set<Foodadditive> loadReferenceFoodadditives(Set<Foodadditive> foodadditives);

	public Set<Foodadditive> loadFoodadditivesByIdSet(Set<Integer> foodadditivesId);

	public Map<String, ?> loadFoodadditiveObjectReferencedSet(Foodadditive foodadditive);

	public Map<String, ?> loadFoodadditiveClassReferencedSet(Foodadditive foodadditive);

	public void deleteFoodadditive(Foodadditive foodadditive);

	public void deleteFoodadditives(Set<Integer> deleteFoodadditivesId);

	public List<Foodadditive> findAllFoodadditives(Integer startResult, Integer maxRows);

	public Foodadditive findFoodadditiveByPrimaryKey(Integer id);

	public Integer countFoodadditives();

	public Integer countFoodadditives(CmiPagination page);

	public Integer countFoodadditivesByName(String queryName);

	public Integer countFoodadditivesByDetachedCriteria(CmiPagination page);

}
